treemodelsort: fix iter_previous so it can go back to the first item
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 22 Apr 2012 20:32:46 +0000 (22:32 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Apr 2012 06:01:16 +0000 (02:01 -0400)
commit676441398a130d4777938d033ec672d36eac5b72
tree9958e1c2a7d9930490bddcf62cc47d2bc874a6d6
parentb3a66c59ade144c094d4dbc568e33a5ef85c1a7d
treemodelsort: fix iter_previous so it can go back to the first item

It was getting the previous element, then checking whether it was the
first one, that has to be inverted so it doesn't stop on the second
item.

https://bugzilla.gnome.org/show_bug.cgi?id=674587
gtk/gtktreemodelsort.c
gtk/tests/sortmodel.c